package com.nidu.demo.file.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.file.dto.FileConfigCO;
import com.nidu.demo.file.mapper.dataobject.FileConfigDO;
import com.nidu.demo.file.model.FileConfig;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface FileConfigConvertor extends BaseConvertor<FileConfigDO, FileConfig, FileConfigCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    FileConfigDO toDataObject(FileConfig fileConfig);

}
